package com.teamone.addressbook.Model;

import com.teamone.addressbook.Utilities.Utility;

public class ModifyAddrEty {

	private final Utility util;
	
	public ModifyAddrEty(Utility util)
	{
		this.util = util;
	}
	
	public int modifyAddress(Address addr)
	{
		int result = 0;
		
		try
		{
			result = util.getSqlMapClient().update("updateAddress", addr);
		}
		catch (Exception e)
		{
			System.out.println(e.getMessage());
			result = -1;
		}
		
		return result;
	}
}


